Skip to content

Conversation

DaveCTurner
Copy link
Contributor

Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
repository-s3 at all, or specifies the region for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.

Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.
@DaveCTurner DaveCTurner added >bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v9.2.0 labels Aug 29, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Aug 29, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

@elasticsearchmachine
Copy link
Collaborator

Hi @DaveCTurner, I've created a changelog YAML for you.

Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for handling this.

@DaveCTurner DaveCTurner added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport Automatically create backport pull requests when merged v8.19.4 labels Sep 1, 2025
@DaveCTurner
Copy link
Contributor Author

I forgot to add the backport labels, now fixed, just calling that out in a comment here in case you have any concerns. IMO we definitely want this in the 8.19 branch which will live for a long time, 9.1 is less important since it will be replaced by 9.2 soon enough but also seems worthwhile.

@elasticsearchmachine elasticsearchmachine merged commit 4ffe49c into elastic:main Sep 1, 2025
33 checks passed
@DaveCTurner DaveCTurner deleted the 2025/08/29/s3-service-default-region-warning branch September 1, 2025 08:36
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Sep 1, 2025
Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.1
8.19 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 133848

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Sep 1, 2025
Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.

Backport of elastic#133848 to 8.19
@DaveCTurner
Copy link
Contributor Author

Backport to 8.19 is #133918

elasticsearchmachine pushed a commit that referenced this pull request Sep 1, 2025
Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.
elasticsearchmachine pushed a commit that referenced this pull request Sep 3, 2025
Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.

Backport of #133848 to 8.19
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 11, 2025
Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.

Backport of elastic#133848 to 8.19
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 19, 2025
Today we emit a log message at startup if we fail to look up the default
region for use by the S3 repository. However, this is only a potential
issue if the default region is needed. If the user doesn't use
`repository-s3` at all, or specifies the `region` for each S3
repository, then the absence of the default region is not an issue.

With this commit we delay logging anything until we encounter a
situation where we actually need the default region for something.

Backport of elastic#133848 to 8.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team v8.19.4 v9.1.4 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants